<%@page import="com.alibaba.dubbo.demo.bean.SysUserinfo"%>
<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<div class="pageContent">
<%
				SysUserinfo userInfo = new SysUserinfo();
				if (request.getSession().getAttribute("sysUserinfo") != null) {
					userInfo = (SysUserinfo) request.getSession().getAttribute("sysUserinfo");
				}
%> 				
	<form method="post" action="./webUpdateUserInfo" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>用户ID：</label>
				<input name="userid" type="text" size="30" value="<%=userInfo.getUserid()%>" readonly="readonly"/>
			</p>
			<p>
				<label>部门：</label>
				<input type="hidden" name="deptid"  size="30" value="<%=userInfo.getDeptid()%>" readonly="readonly"/>
				<input type="hidden" name="orgLookup.deptid" value="<%=userInfo.getDeptid()%>"/>
				<input type="text" class="required" name="orgLookup.deptname" value="<%=userInfo.getDeptname()%>" suggestFields="deptid,deptname" suggestUrl="./jsonQueryDeptInfoLookup" lookupGroup="orgLookup" />
				<a class="btnLook" href="./webQueryDeptInfoLookup?all=1" lookupGroup="orgLookup">选择部门</a>	
			</p>
			<p>
				<label>用户名称：</label>
				<input name="username" id="username" class="required" type="text" size="30" value="<%=userInfo.getUsername()%>" alt="请输入用户名称"/>
			</p>
			<p>
				<label>用户账号：</label>
				<input name="usercode"  id="usercode" class="required" type="text" size="30" value="<%=userInfo.getUsercode()%>" alt="请输入用户账号"/>
			</p>
			<p>
				<label>用户密码：</label>
				<input name="userpwd" class="required" type="password" size="30" value="<%=userInfo.getUserpwd()%>" alt="请输入用户密码"/>
			</p>
			<p>
				<label>确认密码：</label>
				<input name="userpwd1" class="required" type="password" size="30" value="<%=userInfo.getUserpwd()%>" alt="请输入确认密码"/>
			</p>
			<p>
				<label>电话：</label>
				<input name="phone" type="text" size="30" value="<%=userInfo.getPhone()%>" />
			</p>
			<p>
				<label>备注：</label>
				<input name="remark" type="text" size="30" value="<%=userInfo.getRemark()%>" />
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>	
</div>
	<script type="text/javascript">
		$("body").ready(function(){
			if($('#usercode').val()=='admin')
			{
				$('#usercode').attr('readonly','readonly');
				$('#username').attr('readonly','readonly');
			}
		});
	</script>